// import { GetQueryString } from '../../common/hg_until';
import appUtil from '~/assets/utils/appUtil';

import Test from './Test';
import LastReport from './LastReport';
import ActiveNews from './ActiveNews';
import Entrance from './Entrance';
import TechnologicalDev from './TechnologicalDev';
import PurchasingReportTo from './PurchasingReportTo';
import NewsCenter from './NewsCenter';
import NewFooter from './NewFooter';
import HeaderIndex from './HeaderIndex';
import HeaderEdit from './HeaderEdit';
import CludeList from './CludeList';
import CludeDetial from './CludeDetial';
import Banner from './Banner';

let linkBaseOption = {
    type: '海关',
    name: '海关频道',
    icon: 'el-icon-link',
    moreUrl: '',
    template: null,
    templateName: '',
    url: ''
};

export default [
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/Test'), title: '测试', template: Test, templateName: 'Test' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/LastReport'), title: '最新公告', template: LastReport, templateName: 'LastReport' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/ActiveNews'), title: '动态信息', template: ActiveNews, templateName: 'ActiveNews' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/Entrance'), title: '入口导航', template: Entrance, templateName: 'Entrance' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/TechnologicalDev'), title: '各关科技动态', template: TechnologicalDev, templateName: 'TechnologicalDev' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/PurchasingReportTo'), title: '采购中标情况通报', template: PurchasingReportTo, templateName: 'PurchasingReportTo' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/NewsCenter'), title: '新闻中心', template: NewsCenter, templateName: 'NewsCenter' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/NewFooter'), title: '底部切换', template: NewFooter, templateName: 'NewFooter' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/HeaderIndex'), title: '首页顶部', template: HeaderIndex, templateName: 'HeaderIndex' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/HeaderEdit'), title: '其他页面顶部', template: HeaderEdit, templateName: 'HeaderEdit' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/CludeList'), title: '文档列表页', template: CludeList, templateName: 'CludeList' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/CludeDetial'), title: '文档详情', template: CludeDetial, templateName: 'CludeDetial' }),
    Object.assign({}, linkBaseOption, { id: appUtil.getGUIDByPath('src/pages/systemPage/components/componentStore/portlets/hg/Banner'), title: '海关最新公告轮播', template: Banner, templateName: 'Banner' }),
];

// window.onhashchange = function () {
//     console.log(GetQueryString('page'));
//     // 解决页面跳转不刷新问题
//     if(GetQueryString('page') && GetQueryString('page') === '3402513062521209137'){
//         location.reload();
//     }
// };